package yhao.demo.service.erp.workflow.service.task;

import yhao.demo.service.erp.workflow.apilist.form.task.TaskDealForm;
import yhao.demo.service.erp.workflow.dao.TaskDao;
import yhao.demo.service.erp.workflow.service.pvm.ProcessSearcher;

public class DealTaskCommand extends TaskCommand {
    private TaskDealForm form;
    public DealTaskCommand(TaskDao taskDao, ProcessSearcher processSearcher, TaskDealForm form) {
        super(taskDao, processSearcher);
        this.form = form;
    }
    @Override
    protected void initContext() {
        initDealTask(form);
    }

    @Override
    protected Boolean command() {
        updateTaskNodeItem(form.getItemList());
        return true;
    }
}
